import {Map} from 'immutable';

import * as actionTypes from './constants';

const defaultState = Map({
    questionMessage:[]
})

function reducer(state = defaultState, action){
    switch(action.type) {
        case actionTypes.CHANGE_QUESTION_MESSAGE:
            return state.set('questionMessage',action.questionMessage);
        default: 
            return state;
    }
}

export default reducer;